﻿using System;

using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace mluDataEntity
{
    public partial class clienti
    {
        public static IList<clienti> GetAll()
        {
            try
            {

                mluEntities context = new mluEntities();
                var get = from index in context.clienti
                          select index;
                return get.ToList<clienti>();
            }
            catch (Exception e)
            {
                throw new Exception(e.ToString());
                //return null;
            }
        }
    }
}
